package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author cheer
 */
@Data
public class SendInfoUpdateDTO {

    @NotBlank(message = "联系方式不能为空")
    @Length(min = 11, max = 11, message = "联系方式长度必须为11位")
    private String phone;

    @NotBlank(message = "邮寄地址填写不完整")
    private String province;

    @NotBlank(message = "邮寄地址填写不完整")
    private String city;

    @NotBlank(message = "邮寄地址填写不完整")
    private String region;

    @NotBlank(message = "邮寄地址填写不完整")
    @Length(min = 1, max = 100, message = "详细地址长度不能超过100字")
    private String address;

}
